package com.lee.boot.head.first.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Auther: Lee
 * @Date: 2018/6/27 14:32
 * @Description:
 */
//如果使用jsp的前缀修饰，controller的注解需要使用下面这个，而不能使用@RestController
@Controller
@RequestMapping(value = "/user")
public class IndexDemoController {


    @RequestMapping(value = "/userPage")
    @ResponseBody
    public String forward() {

        return "userPAGE";
    }


}
